import request from "@/utils/request";

// 获得banner分页
export function getBannerPage(data) {
  return request({
    url: "/store/banner/page",
    method: "post",
    data: data,
  });
}

// 总部添加Banner
export function CreateBanner(data) {
  return request({
    url: "/store/banner/create/admin",
    method: "post",
    data: data,
  });
}

// 删除banner
export function deleteBanner(query) {
  return request({
    url: "/store/banner/delete",
    method: "delete",
    params: query,
  });
}

// 获得banner
export function getBanners(query) {
  return request({
    url: "/store/banner/query",
    method: "get",
    params: query,
  });
}

// 更新banner门店后台
export function UpdateStoreBanner(data) {
  return request({
    url: "/store/banner/update",
    method: "PUT",
    data: data,
  });
}

// 门店Banner启用禁用
export function StatementInfo(query) {
  return request({
    url: "/store/banner/edit/status",
    method: "delete",
    params: query,
  });
}
